package com.qf.dao;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {

    List<User> selectAll();

    void adduser(User user);

    User selectById(int id);

    User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    void updateUser(Map map);

    List<User> selectByName(String name);
}
